package schoolWork.work03.text6;

public class FillInQuestion extends Question {
    public FillInQuestion(String text) {
        int start = text.indexOf("(");
        int end = text.lastIndexOf(")");
        String questionText = text.substring(0, start + 1) + "____" + text.substring(end);
        setText(questionText);
        setAnswer(text.substring(start + 1, end));
    }
}